package com.springboot.frame.intl.encryption;

import com.springboot.frame.web.annotation.SecurityParameter;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author liheng
 * @ClassName IndexController
 * @Description
 * @date 2020-12-18 16:58
 */
@Api(tags = "..........")
@RestController
@RequestMapping("/")
public class IndexController {

    @ApiOperation("测试文档")
    @PostMapping("index")
    @SecurityParameter
    public Map<String, String>  index(@RequestBody Map<String, String> data) {
        System.out.println(">>>>>>:"+data.toString());
        return data;
    }

    @ApiOperation("测试分组文档")
    @PostMapping("group/index")
    @SecurityParameter
    public Map<String, String>  index1(@RequestBody Map<String, String> data) {
        System.out.println(">>>>>>:"+data.toString());
        return data;
    }
}
